/*
The pci.h header file defines constants for the keyboard scancodes
*/

#ifndef _PCI_H
#define _PCI_H

/* from lib files */
#include <types.h>

#define PCI_READ_CONFIG_BYTE	0xB108
#define PCI_READ_CONFIG_WORD	0xB109
#define PCI_READ_CONFIG_DWORD	0xB10A
#define PCI_WRITE_CONFIG_BYTE	0xB10B
#define PCI_WRITE_CONFIG_WORD	0xB10C
#define PCI_WRITE_CONFIG_DWORD	0xB10D

#define	PCI_ADDR_REG		0xCF8
#define	PCI_DATA_REG		0xCFC

typedef struct 
{
  unsigned char bus, dev, fn;
} pci_t;


/* Functions prototypes */
extern int pci_detect(void);

#endif /* _PCI_H */
